/**
 * DumpDataSource.java
 * Jan 9, 2010
 */
package com.dlplay.flightinfo.source;

import java.util.Date;
import java.util.List;

import com.dlplay.flightinfo.data.AirFlightCode;
import com.dlplay.flightinfo.data.Airport;
import com.dlplay.flightinfo.data.AirportTerminalCode;
import com.dlplay.flightinfo.data.RealTimeFlightInfo;

/**
 * @author zhao yu
 * DumpDataSource is a data source for testing.
 */
public class DumpDataSource extends DataSource implements AirlineDataSource,
		TicketDataSource, RealTimeFlightDS, AgencyDataSource, AirportDataSource {

	@Override
	public RealTimeFlightInfo getFlightByNum(AirFlightCode flightNum) {
		RealTimeFlightInfo ret = new RealTimeFlightInfo(flightNum);
		ret.setLatestUpdate(new Date());
		return ret;		
	}

	@Override
	public Airport getAirport(AirportTerminalCode name) {
		Airport airport = new Airport(name);
		airport.setLatestUpdate(new Date());
		return airport;
	}
}
